x86: rename p2m_mmio_write_dm to p2m_ioreq_server
authorPaul Durrant <paul.durrant@citrix.com>
Thu, 4 Aug 2016 08:01:17 +0000 (10:01 +0200)
committerJan Beulich <jbeulich@suse.com>
Thu, 4 Aug 2016 08:01:17 +0000 (10:01 +0200)
commitcb34624af5f7a6c754221ec89838a74f2f9a2dc9
tree851c09bb6e43c668554dbce0058d0f581dbd99e7
parent730ee51d36a6b2902c01cd39bc0a6156bb5ac4ea
x86: rename p2m_mmio_write_dm to p2m_ioreq_server

Previously p2m type p2m_mmio_write_dm was introduced for write-
protected memory pages whose write operations are supposed to be
forwarded to and emulated by an ioreq server. Yet limitations of
rangeset restrict the number of guest pages to be write-protected.

This patch replaces the p2m type p2m_mmio_write_dm with a new name:
p2m_ioreq_server, which means this p2m type can be claimed by one
ioreq server, instead of being tracked inside the rangeset of ioreq
server. And a new memory type, HVMMEM_ioreq_server, is now used in
the HVMOP_set/get_mem_type interface to set/get this p2m type.

Patches following up will add the related HVMOP handling code which
map/unmap type p2m_ioreq_server to/from an ioreq server. Without
following patches, memory type changes to HVMMEM_ioreq_server can
still be allowed, and in such cases, p2m_ioreq_server pages will be
treated the same as ones with previous type p2m_mmio_write_dm, and
are tracked inside the ioreq server's rangeset.

Signed-off-by: Paul Durrant <paul.durrant@citrix.com>
Signed-off-by: Yu Zhang <yu.c.zhang@linux.intel.com>
Acked-by: Tim Deegan <tim@xen.org>
Acked-by: Andrew Cooper <andrew.cooper3@citrix.com>
Acked-by: George Dunlap <george.dunlap@citrix.com>
xen/arch/x86/hvm/hvm.c
xen/arch/x86/mm/p2m-ept.c
xen/arch/x86/mm/p2m-pt.c
xen/arch/x86/mm/shadow/multi.c
xen/include/asm-x86/p2m.h
xen/include/public/hvm/hvm_op.h